Fixed a lot of typos in the codebase and documentation#55327
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
📋 SDK Diagnostic Documentation ReminderThis PR introduces 1 new SDK diagnostic code:
Action RequiredPlease ensure that documentation for this diagnostic is added or updated in the dotnet/docs repository at:
Each diagnostic should have:
Thank you for helping keep our documentation up to date! 🙏 |
There was a problem hiding this comment.
Pull request overview
This PR performs typo corrections across the .NET SDK repo, spanning tests, MSBuild tasks/targets, developer documentation, and localized resource strings to improve clarity and consistency without intended behavior changes.
Changes:
- Fixes misspellings in identifiers/parameter names in test and source code (e.g.,
identifer→identifier), plus related comments. - Corrects typos in MSBuild tasks/targets and analyzer/test comments.
- Updates docs and resource strings (
.resxand corresponding.xlf) to correct misspellings in user-facing text.
Reviewed changes
Copilot reviewed 36 out of 36 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs | Renames local variable identifer → identifier and fixes a nearby comment typo. |
| test/Microsoft.NET.Build.Tests/GivenThatWeWantToVerifyNuGetReferenceCompat.cs | Fixes named argument and parameter spelling identifer → identifier. |
| test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs | Fixes a comment typo (“Identifer” → “Identifier”). |
| src/WebSdk/Publish/Tasks/Tasks/MsDeploy/NormalizeServiceUrl.cs | Fixes comment typo (“explicityly” → “explicitly”). |
| src/WebSdk/Publish/Tasks/MsDeploy/CommonUtility.cs | Fixes comment typos (“fond teh” → “found the”). |
| src/TemplateEngine/Tools/Microsoft.TemplateEngine.TemplateLocalizer.Core/ExportResult.cs | Fixes XML doc typo (“occured” → “occurred”). |
| src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.WindowsSdkSupportedTargetPlatforms.props | Fixes comment typo (“verison” → “version”). |
| src/Tasks/Microsoft.NET.Build.Tasks/ResolvePackageDependencies.cs | Fixes doc comment typo (“compatability” → “compatibility”). |
| src/Tasks/Microsoft.NET.Build.Tasks/GenerateDepsFile.cs | Fixes private method name typo (ShouldWarnOnRuntimeIdentifer → ShouldWarnOnRuntimeIdentifier) and updates usages. |
| src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.tr.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.ru.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.pl.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.ko.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.ja.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.it.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.fr.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.es.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.de.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/xlf/Strings.cs.xlf | Updates localized resource <source> text to fix “identifer” → “identifier”. |
| src/Tasks/Common/Resources/Strings.resx | Fixes user-facing resource text typo (“identifer” → “identifier”). |
| src/RazorSdk/Tool/ShadowCopyManager.cs | Fixes comment typo (“existance” → “existence”). |
| src/Microsoft.CodeAnalysis.NetAnalyzers/tests/Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/Microsoft.NetCore.Analyzers/InteropServices/PlatformCompatibilityAnalyzerTests.cs | Fixes comment typo (“containg” → “containing”). |
| src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.NetAnalyzers/Microsoft.NetFramework.Analyzers/Helpers/SecurityDiagnosticHelpers.cs | Fixes comment typo (“verison” → “version”). |
| src/Microsoft.CodeAnalysis.NetAnalyzers/src/Microsoft.CodeAnalysis.CSharp.NetAnalyzers/Microsoft.NetCore.Analyzers/InteropServices/CSharpDisableRuntimeMarshalling.Fixer.cs | Fixes local variable name typo (renameIdentiferAnnotation → renameIdentifierAnnotation). |
| src/Microsoft.CodeAnalysis.NetAnalyzers/docs/performance.md | Fixes typo (“mutli-core” → “multi-core”) and removes unintended indentation affecting rendering. |
| src/Dotnet.Watch/Watch/Process/ProcessRunner.cs | Fixes XML doc typo (“Virutal” → “Virtual”). |
| src/Dotnet.Watch/dotnet-watch/README.md | Fixes typo (“successfuly” → “successfully”). |
| src/Compatibility/Microsoft.DotNet.ApiSymbolExtensions/Filtering/SymbolFilterFactory.cs | Fixes XML doc typos (“specifed” → “specified”). |
| documentation/TemplateEngine/template-resolution-for-dotnet-cli.md | Fixes typo (“moving o” → “moving to”) and removes unintended indentation affecting rendering. |
| documentation/TemplateEngine/Post-Action-Registry.md | Fixes duplicated word typo (“will be be ignored” → “will be ignored”). |
| documentation/TemplateEngine/contributing/how-to-create-new-generated-symbol.md | Fixes typo (“implemetation” → “implementation”). |
| documentation/TemplateEngine/Conditions.md | Fixes typo (“dependant” → “dependent”). |
| documentation/general/SelfContainedBreakingChangeNotification.md | Fixes typo (“RuntimeIdentifer” → “RuntimeIdentifier”). |
|
LGTM, minus needing to address Jason's feedback |
4b45aec to
b61b666
Compare
Fixed a lot of typos across the code base and documentations. These are **not** nitpicking, personal preferences nor grammar errors, these are obvious typos. Changes made to the codes have been carefully reviewed to ensure they only fix typos, nothing else. Here are some of the examples of fixed typos: 1. `dependant` -> `dependent` 2. `will be be ignored` -> `will be ignored` 3. `specifed` -> `specified` 4. `successfuly` -> `successfully` 5. `verison` -> `version` 6. `identifer` -> `identifier` 7. `existance` -> `existence` 8. `containg` -> `containing` 9. `mutli-core` -> `multi-core` 10. `Virutal` -> `Virtual` 11. `fond teh item` -> `found the item` And so on.
b61b666 to
0819061
Compare
|
Some related build failures |
|
@tannergooding Thank you for telling me, i fixed the issue. |
|
The branch needs updating again and 2 of the jobs are failing but i don't know if i should update branch and use runner resources again or not because their failure seem to be unrelated to my changes. |
|
Comment/docs only changes, the minor feedback was addressed |
Fixed a lot of typos across the code base and documentations. These are not nitpicking, personal preferences nor grammar errors, these are obvious typos. Changes made to the codes have been carefully reviewed to ensure they only fix typos, nothing else.
Here are some of the examples of fixed typos:
will be be ignored->will be ignoredspecifed->specifiedsuccessfuly->successfullyverison->versionidentifer->identifierexistance->existencecontaing->containingmutli-core->multi-coreVirutal->Virtualfond teh item->found the itemAnd so on.